All Questions
Tagged with scikit-learnkeras
80 questions
-1votes
1answer
105views
In order to predict after training on Standardized data, do I need the StandardScaler as well?
Is the scaler saved inside the model.keras file or I need to separately save it? I want to train an neural network, save it, and ...
0votes
1answer
144views
Why most keras examples use shape=(None,) instead of shape=(None)?
I'm reading several keras tutorials and found that many examples are written like this: keras.Input(shape=(None,), dtype="int64", name="english")...
1vote
1answer
1kviews
How to compare $R^{2}$ of train and test data in a Deep Learning Neural Network Regression model?
I want to judge the goodness of my neural network regression model built using Keras Python Library. The problem is the following: from an input like (1000, 5000) so 1000 samples and each sample has ...
0votes
1answer
134views
Export a detailed report with metrics after the training process of a Keras model
I have an image-segmentation model (.h5) which was trained using dice coefficient, recall and precision metrics. The model was trained using the ImageDataGenerator class with the following code: ...
0votes
1answer
1kviews
numpy.ndarray' object has no attribute 'batch' [closed]
I am building an image classifier using cnn using the following code- I am getting this error, despite making several changes- Kindly help me fix this error.
0votes
1answer
385views
Sklearn vs Pytorch vs Tensorflow vs Keras
I just need to understand the differences between sklearn, pytorch, tensorflow and keras in terms which implements traditional machine learning algorithms ( Linear regression , knn, decision trees, ...
0votes
1answer
1kviews
Input shape error
I've this item: ['6', '1', '6', '843537', '3', '0', '5', '1006709', '3', '1', '4'] with shape: (11,) but when go to predict with: ...
2votes
1answer
533views
Fashion MNIST: Is there an easy way to extract only 1% of the data to do a minimal gridsearch?
I am trying implement several models on the fashion-MNIST. I have imported the data according to the tf.keras tutorial: ...
0votes
2answers
8kviews
NameError: name 'model' is not defined Keras with f1_score
I'm having a problem with my Keras model, in the .compile() I use accuracy, loss, precision, recall and AUC, but also I need f1_score, due to Keras doesn´t include f1_score, I tried to calculate by ...
3votes
1answer
1kviews
How to identify/recognize that a sentence about talks about future?
Brief Introduction: I have a report/paragraph in which there are sentences with reference to future plans/outlooks/expectations for a particular entity. I want to extract all such sentences for now. ...
1vote
0answers
90views
Why are the results from the keras validation split different from sklearn metrics?
I am training a Keras model, and running: model.fit(X, y, epochs=10, validation_data=(X_test, y_val)) I'm using AUC, precision, and recall as the metrics (also ...
0votes
1answer
443views
Unable to generate confusion matrix
I am using keras flow from directory for image segmentation. Following are my codes ...
0votes
0answers
257views
text classification - does number of features matters?
I'm working on a multi-class text classification project that aims to assign a "new bug" to his "final group assignee" To do that I was able to extract ~17000 samples and divided ...
0votes
0answers
789views
Why am I getting good validation scores, but poor test scores in Kaggle competition
I am participating in a Kaggle multiclass classification competition. The submissions will be scored based on the 'logloss' score. I am using Keras and Scikit libraries and a deep learning network ...
0votes
1answer
708views
Precision, recall and accuracy metrics significantly different between training/validation and actual predictions
I have two sequential models built with Keras that train on data from a CSV file. This is how they are built ...